import all from '@/lib/page'

const { keepAlives, allMenu } = all

const state = {
  collapse: false,
  menus: allMenu,
  keepAliveCompontens: keepAlives
}

const mutations = {
  triggerCollapse (state) {
    state.collapse = !state.collapse
  }

}

export default {
  namespaced: true,
  state,
  mutations
}
